package com.tools.developer.download;

//http://www.android123.com.cn/androidkaifa/723.html
import android.app.DownloadManager;
import android.app.DownloadManager.Request;
import android.content.Context;
import android.net.Uri;

public class DownLoadCenter {
	private Context mCtx;

	DownLoadCenter(Context ctx) {
		mCtx = ctx;
	}

	public boolean addDownTask() {

		Uri uri = Uri
				.parse("http://dl.dc.ijinshan.com/bd/kBatteryDoctor_new.apk");
		DownloadManager.Request request = new Request(uri);
		DownloadManager downMgr = (DownloadManager) mCtx
				.getSystemService(Context.DOWNLOAD_SERVICE);
		downMgr.enqueue(request);

		return true;
	}
}
